﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CloudClass.Models;

namespace CloudClass.ViewModels
{
    public class CourseInfoDetail
    {
        /// <summary>
        /// 课程详情
        /// </summary>
        public CourseInfo CourseInfo { get; set; }

        /// <summary>
        /// 是否参加该课程0否1是
        /// </summary>
        public int IsJoin { get; set; }

        /// <summary>
        /// 发布者
        /// </summary>
        public string Publisher { get; set; }

        /// <summary>
        /// 发布者头像
        /// </summary>
        public string ImgUrl { get; set; }

        /// <summary>
        /// 发布者描述
        /// </summary>
        public string PublisherDesc { get; set; }

        /// <summary>
        /// 目录
        /// </summary>
        public List<Lesson> LessonList { get; set; }

        /// <summary>
        /// 学过该课程的学生
        /// </summary>
        public List<UserInfo> UserInfoList { get; set; }

        /// <summary>
        /// 精选问答
        /// </summary>
        public List<AskAbout> AskList { get; set; }

        /// <summary>
        /// 精选笔记
        /// </summary>
        public Notes Notes { get; set; }

        /// <summary>
        /// 笔记顶数量
        /// </summary>
        public int NoteTopCount { get; set; }

        /// <summary>
        /// 笔记评论数量
        /// </summary>
        public int NoteCommentCount { get; set; }

        /// <summary>
        /// 评论列表
        /// </summary>
        public List<Evaluation> EvaluationList { get; set; }

    }

    public class AskAbout
    {
        /// <summary>
        /// 问答
        /// </summary>
        public Ask Ask { get; set; }

        /// <summary>
        /// 答案数量
        /// </summary>
        public int AnswerCount { get; set; }

        /// <summary>
        /// 投票数量
        /// </summary>
        public int VoteCount { get; set; }
    }
}